package CompositePattern;
public class Main {
    public static void main(String[] args) {
        TextFile textFile=new TextFile("文本文件");
        Folder folder1=new Folder();
       Folder folder2=new Folder();
       folder2.add(textFile);
       folder1.add(folder2);
        folder1.Openfile();
    }
}